package com.blockmeta.bbs.baselibrary.net.interceptor;

import com.blankj.utilcode.util.LogUtils;

import com.blankj.utilcode.util.LogUtils;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * @author AirThor
 * @date 2019/3/25.
 * OkHttp请求拦截器
 */
public class RequestInterceptor implements Interceptor{
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request();
        LogUtils.d("request", "url:"+request.url()+",headers:"+request.headers());
        return chain.proceed(request);
    }
}
